import { ApiProperty } from '@midwayjs/swagger'

import { BaseVO } from './base.vo'

/**
 * 部门结果
 */
export class DeptVO extends BaseVO implements Omit<ISysDeptEntity, 'roles'> {
  @ApiProperty({ description: '主键' })
  deptId: string

  @ApiProperty({ description: '上级主键' })
  parentId: string

  @ApiProperty({ description: '祖级列表' })
  ancestors: string

  @ApiProperty({ description: '部门名称' })
  deptName: string

  @ApiProperty({ description: '显示顺序' })
  orderNum: number

  @ApiProperty({ description: '负责人' })
  leader: string

  @ApiProperty({ description: '联系电话' })
  phone: string

  @ApiProperty({ description: '邮箱' })
  email: string

  @ApiProperty({ description: '部门状态' })
  status: string

  @ApiProperty({ description: '删除标志' })
  delFlag: string
}
